package com.RedRiver.hospitalsystem.record_service.common;

import com.RedRiver.hospitalsystem.result.ResultCode;

public enum Record_serviceResultCode implements ResultCode {
    PAPERSNAME_IS_EXISTS_ERROR(2001,"该名字已存在"),
    DELETEPAPER_ERROR(2002,"删除失败，请检查该类别编号是否存在"),
    CREATE_SERIAL_ERROR(2003,"挂号失败"),
    SERIAL_NOT_USER_ERROR(2004,"您今天还有一个号没有使用，请勿重复挂号"),
    NO_SERIAL_ERROR(2005,"当前暂无患者"),
    TIME_IS_ERROR(2006,"挂号时间请选择当前时间之后"),
    MEDICINES_NOT_EXISTS_ERROR(2007,"请检查药物是否存在"),
    CREATE_PRESCRIPTION_ERROR(2008,"创建处方失败"),
    PERSCRIPTION_NOT_EXSTS_ERROR(2009,"该id的处方不存在"),
    CREATE_RECORD_ERROR(2010,"添加病历失败"),
    NO_RECORD_ID_ERROR(2011,"该患者没有病历"),
    RECORDS_NOT_EXISTS_ERROR(2012,"没有该id的病历"),
    ADDRECORD_ERROR(2013,"添加结果失败"),
    NO_SERIAL_BYID_ERROR(2014,"当前号数不存在"),
    PATIENT_NOT_EXISTS_ERROR(2015,"当前病人不存在"),
    DOCTOR_NOT_EXISTS_ERROR(2016,"当前医生未上班或该医生的号已售完")

    ;

    private int code;
    private String message;

    private Record_serviceResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
